package com.nf.recruitment.service.impl;

import com.nf.recruitment.dao.DepartmentMapper;
import com.nf.recruitment.entity.Department;
import com.nf.recruitment.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DepartmentServiceImpl implements DepartmentService {
    @Autowired
    private DepartmentMapper mapper;
    @Override
    public List<Department> listDepartment() {
        return mapper.listDepartment();
    }

    @Override
    public void saveDepartment(Department department) {
        mapper.saveDepartment(department);
    }
}
